<?php

namespace AppBundle\Exception;

/**
 * Description of GatewayException
 *
 * @author yihao
 */
class GatewayException extends \Exception
{
    
    private $errorCode;
    
    private $errorMsg;
    
    public function __construct($errorCode, $errorMsg, $message = '')
    {
        $this->errorCode = $errorCode;
        $this->errorMsg = $errorMsg;
        $this->message = $message;
    }
    
    public function getErrorCode()
    {
        return $this->errorCode;
    }
    
    public function getErrorMsg()
    {
        return $this->errorMsg;
    }
    
    public function setErrorCode($errorCode)
    {
        $this->errorCode = $errorCode;
        return $this;
    }
    
    public function setErrorMsg($errorMsg)
    {
        $this->errorMsg = $errorMsg;
        return $this;
    }
    
}
